<?php
require_once('config.php');
require_once 'libs/router.php';
require_once('controllers/controller.php');
$site = null;
$router = new Router();
$router->dispatch();
switch ($router->page) {
	case 'blog':
		require_once 'controllers/'.$router->page.'_controller.php';
		$site = new BlogController($router->page);
		break;
	
	default:
		# code...
		break;
}
$site->execute();